#include "modulerelease.h"


ModuleRelease::ModuleRelease()
{
}

ModuleRelease::ModuleRelease(const ModuleRelease& m)
{
  moduleid = m.moduleid;
  release_name = m.release_name;
}

ModuleRelease::ModuleRelease(Module m, std::string release)
{
  moduleid = m;
  release_name = release;
}

ModuleRelease::~ModuleRelease()
{
}

void ModuleRelease::setModule(Module m)
{
  moduleid = m;
}

const Module &ModuleRelease::getModule()
{
  return moduleid;
}

void ModuleRelease::setRelease(const std::string& rn)
{
  release_name = rn;
}

std::string ModuleRelease::getRelease()
{
  return release_name;
}

bool ModuleRelease::operator == (const ModuleRelease& m)
{
  return moduleid == m.moduleid;
}

bool ModuleRelease::operator == (const Module& m)
{
  return moduleid == m;
}
